/**
 * Copyright (c) 2016 Lenovo Group
 * All Rights Reserved.
 * 
 * Project Name:lmrp-api
 * Create Time: 2016年1月29日 下午10:27:25
 */
package com.lenovo.lmrp.api.model.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;

import com.lenovo.sdc.framework.util.IntegerValuedEnum;

/**
 * 
 * @author wujin
 * @version v1.0
 */
@Entity
@Table(name = "itsm_ticket_parts")
public class TicketPartsPO implements Serializable {
	/**  */
	private static final long serialVersionUID = 1L;

	public static enum PartsAction implements IntegerValuedEnum {
		UP, DOWN;
		
        @Override
        public int getCode() {
            return ordinal();
        }
	}

	@Id
	@Column
	private String id;

	@Column
	private String ticketId;

	@Column
	private String name;

	@Column
	private String FRU;

	@Column
	@Enumerated(EnumType.ORDINAL)
	private PartsAction type;

	@Column
	private String description;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTicketId() {
		return ticketId;
	}

	public void setTicketId(String ticketId) {
		this.ticketId = ticketId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFRU() {
		return FRU;
	}

	public void setFRU(String fRU) {
		FRU = fRU;
	}

	public PartsAction getType() {
		return type;
	}

	public void setType(PartsAction type) {
		this.type = type;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
